﻿using System.Text;

namespace ProjetoComperio.Framework.Web.Security.HtmlMessages
{
    public class HtmlMessage
    {
        private StringBuilder htmlContent;

        public HtmlMessage(string content)
        {
            htmlContent = new StringBuilder(content);
        }
        public HtmlMessage InsertContent(string key, string value)
        {
            string keyToReplace = "%%" + key + "%%";
            htmlContent.Replace(keyToReplace, value);
            return this;
        }
        public string GetContent()
        {
            return htmlContent.ToString();
        }

    }
}